const state = {
  userName: 'Tom',
};

const mutations = {
  // eslint-disable-next-line no-shadow
  setUserName: (state, name) => {
    state.userName = name;
  },
};

export default {
  namespaced: true, // 命名空间
  state,
  mutations,
};
